<form class="form-horizontal" method="post" width="500px">
  <fieldset>
    <legend>添加项目</legend>
    <div class="form-group">
      <label for="proj[name]" class="col-sm-2 control-label">项目名</label>
      <div class="col-sm-10">
        <input type="text" name="proj[name]" class="form-control" placeholder="输入项目名" />
      </div>
    </div> 
    <div class="form-group">
      <label for="proj[price]" class="col-sm-2 control-label">价格</label>
      <div class="col-sm-10">
        <input type="number" name="proj[price]" class="form-control" placeholder="输入价格" />
      </div>
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">添加</button>
      <button type="button" class="btn btn-default" onclick="javascript:history.back(-1)">取消</button>
    </div>
  </fieldset>
</form>